/*
 * #%L
 * InterfaceAPI
 * %%
 * Copyright (C) 2011 Ractoc.com
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */
package com.ractoc.opengamefinder.api.vo;

import com.jme3.network.serializing.Serializable;

/**
 * Value object containing the downloadable content data.
 * @author ractoc
 * @since 0.1
 */
@Serializable
public class DownloadableContentVO {
    private Integer id;
    private Integer version;
    private byte[] content;
    private String fileName;
    private String type;

    /**
     * The filename of the downloadable content.
     * @return The filename.
     */
    public String getFileName() {
        return fileName;
    }

    /**
     * The filename of the downloadable content.
     * @param fileName The filename.
     */
    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    /**
     * The actual content.
     * @return The actual content.
     */
    public byte[] getContent() {
        return content;
    }

    /**
     * The actual content.
     * @param content The actual content.
     */
    public void setContent(byte[] content) {
        this.content = content;
    }

    /**
     * The database id of the downloadable content.
     * @return The database id.
     */
    public Integer getId() {
        return id;
    }

    /**
     * The database id of the downloadable content.
     * @param id The database id.
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * The version of the downloadable content. This is used to detect when the content has been updated.
     * @return The version.
     */
    public Integer getVersion() {
        return version;
    }

    /**
     * The version of the downloadable content. This is used to detect when the content has been updated.
     * @param version The version.
     */
    public void setVersion(Integer version) {
        this.version = version;
    }

    /**
     * The type of the downloadable content. This is the file extension.
     * @return The type.
     */
    public String getType() {
        return type;
    }

    /**
     * The type of the downloadable content. This is the file extension.
     * @param type The type.
     */
    public void setType(String type) {
        this.type = type;
    }
}
